/*    */ package com.qmsk.business.task.schedulerecoderNew.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class CumsdlRcdDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfShopId(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 17 */     return getGsonOfParams("selectSqlOfParams", params, nPageIdx, 
/* 18 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public int updateCheckedOfIds(String userName, Long id) throws SQLException {
/* 22 */     Object[] strParams = { userName, id };
/* 23 */     return update("updateCheckedOfIds", strParams);
/*    */   }
/*    */ 
/*    */   public GsonHeadOneRow getOneRowOfId(Long id) throws SQLException {
/* 27 */     Map params = new HashMap();
/* 28 */     MapUtils.addToMap(params, "id", id);
/* 29 */     return getOneRowOfParams("selectSqlOfID", params);
/*    */   }
/*    */ 
/*    */   public int updateCheckedOfIds(String userName, Long id, Integer status) throws SQLException
/*    */   {
/* 34 */     Object[] strParams = { userName, id };
/* 35 */     if (status.intValue() == 1)
/* 36 */       return update("updateCheckedOfIds", strParams);
/* 37 */     if (status.intValue() == 2) {
/* 38 */       return update("updateCancelOfIds", strParams);
/*    */     }
/* 40 */     return update("updateFinishOfIds", strParams);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.task.schedulerecoderNew.dao.CumsdlRcdDao
 * JD-Core Version:    0.5.3
 */